<template>
	<view class="faq page bgf5 pt10 c00">
		<view class="bgff px15 py10" v-for="itemList in list">
			<view class="bold6 fs16 pt12 pb8">{{itemList.name}}</view>
			<view class=" flexC  aliL">
				<view v-for="(item,index) in itemList.contentList" @click="detail(item)" class="r40 py8 boxS my7  btn mx10">{{index+1}}.{{item.name}}</view>
			</view>
			
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			};
		},
		onLoad() {
			this.getList();
		},
		methods: {
			detail(item){
				uni.navigateTo({
					url:'../member/article?name='+item.name
				})
			},

			getList() {
				let that = this;

				let param = {
				
				};

				this.$api.articelList(param).then(res => {

					
					if (res.code == 1) {
						
						that.list = res.data;
					} else {

					}
				})

			}
		}
	}
</script>

<style lang="scss" scoped>
	.faq {
		.btn {
			width: calc(100% - 40rpx);
		}
	}
</style>
